package com.sailorj.mapper;

import com.sailorj.entity.SysLog;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SysLogMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysLog record);

    int insertSelective(SysLog record);

    SysLog selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysLog record);

    int updateByPrimaryKey(SysLog record);

    @Select("select * from sys_log limit #{page},#{size}")
    List<SysLog> getSysLogList(@Param("page") Integer page, @Param("size")Integer size);

    @Select("select count(*) from sys_log")
    Long getTotal();
}